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

Issue 165098: Issue 1174 - <button>.cloneNode fails on IE (Closed)

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

Description

http://code.google.com/p/google-caja/issues/detail?id=1174 ie[67] doesn't let you change a button's type after it's created. it's the same as the <input> type problem, you have to specify the type in createElement. bridal's cloneNode handles <input> correctly but not <button. This change fixes constructClone in bridal.js. I also checked html4-attributes-defs.json to see whether there are any other nodes with a "type" or "value" attribute that need to be fixed up. The only other ones are PARAM and LI, UK, OL, and disallowed elements like OBJECT and LINK, none of which are inputs. Submitted @3898

Patch Set 1 #

Patch Set 2 : Issue 1174 - <button>.cloneNode fails on IE #

Patch Set 3 : Issue 1174 - <button>.cloneNode fails on IE #

Total comments: 1

Patch Set 4 : Issue 1174 - <button>.cloneNode fails on IE #

Patch Set 5 : Issue 1174 - <button>.cloneNode fails on IE #

Patch Set 6 : Issue 1174 - <button>.cloneNode fails on IE #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -5 lines) Patch
M src/com/google/caja/plugin/bridal.js View 1 2 3 3 chunks +11 lines, -5 lines 0 comments Download
M tests/com/google/caja/plugin/HtmlCompiledPluginTest.java View 1 chunk +2 lines, -0 lines 0 comments Download
M tests/com/google/caja/plugin/html-emitter-test.html View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 5
MikeSamuel
16 years, 3 months ago (2009-12-09 00:17:44 UTC) #1
MikeSamuel
http://codereview.appspot.com/165098/diff/5/1003 File src/com/google/caja/plugin/bridal.js (right): http://codereview.appspot.com/165098/diff/5/1003#newcode125 src/com/google/caja/plugin/bridal.js:125: + '" value="' + escapeAttrib(node.value) + '">'; Changed since ...
16 years, 3 months ago (2009-12-09 00:25:32 UTC) #2
felix8a
lgtm
16 years, 3 months ago (2009-12-09 09:22:12 UTC) #3
MikeSamuel
Snapshotted to fix some missing JS files in tests that now fail fast because bridal ...
16 years, 3 months ago (2009-12-09 22:00:40 UTC) #4
felix8a
16 years, 3 months ago (2009-12-09 22:37:31 UTC) #5
ah, yeah.  lgtm.

On 2009/12/09 22:00:40, MikeSamuel wrote:
> Snapshotted to fix some missing JS files in tests that now fail fast
> because bridal asserts its dependency on html.escapeAttrib during
> load.
> 
> 2009/12/9  <felix8a@gmail.com>:
> > lgtm
> >
> > http://codereview.appspot.com/165098
> >
>
Sign in to reply to this message.

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