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

Issue 129045: fix IE[67] issues with getAttribute/setAttribute (Closed)

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

Description

in IE[67] and IE8 in compatibility mode, domita_test fails in a couple ways. the problem is el.getAttribute(x) is broken on IE[67]. if you have <form id="f" foo="x"><input name="foo"></form> then f.getAttribute('foo') will return the input node, instead of 'x'. setAttribute() is also broken in the same way. this screws up a lot of things on IE[67]. for example, if a gadget has <form id="x"><input name="id"></form> then html-emitter does not set the form id correctly. the fix is to use getAttributeNode instead. I've run domita_test.html manually on chrome-4.0.221.8 1 fail (unrelated) firefox-3.0.14 0 fail firefox-3.5.3 0 fail ie-6 7 fail (unrelated) ie-8-compat 7 fail (unrelated) ie-8-std 9 fail (unrelated) opera-10.00 7 fail (unrelated) safari-4.0.3 1 fail (unrelated) safari-3.2.1 and opera-9.64 completely fail to run domita_test, not sure why yet.

Patch Set 1 #

Total comments: 10

Patch Set 2 : fix IE[67] issues with getAttribute/setAttribute #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -62 lines) Patch
M src/com/google/caja/plugin/bridal.js View 1 4 chunks +36 lines, -37 lines 0 comments Download
M src/com/google/caja/plugin/domita.js View 1 1 chunk +1 line, -8 lines 0 comments Download
M src/com/google/caja/plugin/html-emitter.js View 1 1 chunk +2 lines, -2 lines 0 comments Download
M tests/com/google/caja/plugin/domita_test_untrusted.html View 1 6 chunks +59 lines, -15 lines 0 comments Download
M third_party/js/jqueryjs/runtest/env.js View 1 1 chunk +5 lines, -0 lines 2 comments Download

Messages

Total messages: 6
felix8a
16 years, 6 months ago (2009-10-07 22:07:18 UTC) #1
MikeSamuel
http://codereview.appspot.com/129045/diff/1/5 File src/com/google/caja/plugin/bridal.js (right): http://codereview.appspot.com/129045/diff/1/5#newcode391 Line 391: element.setAttributeNode(node); So this works for class and for? ...
16 years, 6 months ago (2009-10-14 03:10:27 UTC) #2
felix8a
updated snapshot http://codereview.appspot.com/129045/diff/1/5 File src/com/google/caja/plugin/bridal.js (right): http://codereview.appspot.com/129045/diff/1/5#newcode391 Line 391: element.setAttributeNode(node); On 2009/10/14 03:10:27, MikeSamuel wrote: ...
16 years, 6 months ago (2009-10-15 18:36:15 UTC) #3
MikeSamuel
LGTM http://codereview.appspot.com/129045/diff/3001/1012 File third_party/js/jqueryjs/runtest/env.js (right): http://codereview.appspot.com/129045/diff/3001/1012#newcode520 Line 520: this._dom.getAttributeNode(name) : null; I think return this._dom.getAttributeNode(name) ...
16 years, 6 months ago (2009-10-15 19:37:37 UTC) #4
felix8a
http://codereview.appspot.com/129045/diff/3001/1012 File third_party/js/jqueryjs/runtest/env.js (right): http://codereview.appspot.com/129045/diff/3001/1012#newcode520 Line 520: this._dom.getAttributeNode(name) : null; On 2009/10/15 19:37:37, MikeSamuel wrote: ...
16 years, 6 months ago (2009-10-15 19:54:14 UTC) #5
felix8a
16 years, 6 months ago (2009-10-15 19:57:38 UTC) #6

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