Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(35)

Issue 159053: fix spurious exception from button.setAttribute("type", x) (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years, 7 months ago by felix8a
Modified:
16 years, 7 months ago
Reviewers:
MikeSamuel
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

this fixes http://code.google.com/p/google-caja/issues/detail?id=1171 YUI was failing on IE[67] when trying to create a YUI button using an existing <button>, because it was trying to setAttribute("type", "button") and that normally just fails silently on IE[67], but throws an exception when using bridal.

Patch Set 1 #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -12 lines) Patch
M src/com/google/caja/plugin/bridal.js View 1 chunk +41 lines, -12 lines 8 comments Download
M tests/com/google/caja/plugin/domita_test_untrusted.html View 2 chunks +15 lines, -0 lines 2 comments Download

Messages

Total messages: 4
felix8a
16 years, 7 months ago (2009-11-21 05:27:09 UTC) #1
MikeSamuel
LGTM http://codereview.appspot.com/159053/diff/1/3 File src/com/google/caja/plugin/bridal.js (right): http://codereview.appspot.com/159053/diff/1/3#newcode413 src/com/google/caja/plugin/bridal.js:413: - In IE[67], you can never change the ...
16 years, 7 months ago (2009-11-21 16:48:11 UTC) #2
felix8a
@r3866 http://codereview.appspot.com/159053/diff/1/3 File src/com/google/caja/plugin/bridal.js (right): http://codereview.appspot.com/159053/diff/1/3#newcode413 src/com/google/caja/plugin/bridal.js:413: - In IE[67], you can never change the ...
16 years, 7 months ago (2009-11-23 23:52:11 UTC) #3
MikeSamuel
16 years, 7 months ago (2009-11-24 04:50:07 UTC) #4
Ok.  I don't see the changes to domita_test_untrusted.html snapshotted.  But
assuming you submit with that in, LGTM.

Should we change the HTML schema to list button type as a required attribute so
that we warn when it's not present?
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b