Open
Bug 1374004
Opened 7 years ago
Updated 2 years ago
ACID 3 test 23 fails with "expected '14' but got '5' - wrong exception for createElementNS('null', ':div')"
Categories
(Core :: DOM: Core & HTML, defect, P3)
Core
DOM: Core & HTML
Tracking
()
NEW
People
(Reporter: Tobbi, Unassigned)
References
Details
Going to http://acid3.acidtests.org and running the ACID3 test, one of the failing tests is 25. The only thing I can see from the log is: Test 23 failed: expected '14' but got '5' - wrong exception for createElementNS('null', ':div')
Reporter | ||
Comment 1•7 years ago
|
||
(In reply to Tobias (:Tobbi) Markus from comment #0) > Going to http://acid3.acidtests.org and running the ACID3 test, one of the > failing tests is 25. gah! This is about test #23.
Reporter | ||
Comment 2•7 years ago
|
||
For reference: The test in question is this: function () { // test 23: createElementNS() with invalid tag names var test = function (name, ns, code) { var result; try { var div = document.createElementNS(ns, name); } catch (e) { result = e; } assert(result, "no exception for createElementNS('" + ns + "', '" + name + "')"); assertEquals(result.code, code, "wrong exception for createElementNS('" + ns + "', '" + name + "')"); } test('<div>', null, 5); test('0div', null, 5); test('di v', null, 5); test('di<v', null, 5); test('-div', null, 5); test('.div', null, 5); test('<div>', "http://example.com/", 5); test('0div', "http://example.com/", 5); test('di<v', "http://example.com/", 5); test('-div', "http://example.com/", 5); test('.div', "http://example.com/", 5); test(':div', null, 14); test(':div', "http://example.com/", 14); test('d:iv', null, 14); test('xml:test', "http://example.com/", 14); test('xmlns:test', "http://example.com/", 14); // (technically a DOM3 Core test) test('x:test', "http://www.w3.org/2000/xmlns/", 14); // (technically a DOM3 Core test) document.createElementNS("http://www.w3.org/2000/xmlns/", 'xmlns:test'); // (technically a DOM3 Core test) return 2; },
Comment 4•7 years ago
|
||
Hi Tobias, may I know how did you get the following log?
> Test 23 failed: expected '14' but got '5' - wrong exception for createElementNS('null', ':div')
I only noticed the result is 98/100 (v54.0/Ubuntu) but did not find any error log.
Flags: needinfo?(tobbi.bugs)
Reporter | ||
Comment 5•7 years ago
|
||
(In reply to Jessica Jong [:jessica] from comment #4) > Hi Tobias, may I know how did you get the following log? > > > Test 23 failed: expected '14' but got '5' - wrong exception for createElementNS('null', ':div') > > I only noticed the result is 98/100 (v54.0/Ubuntu) but did not find any > error log. Click the capital "A" in "Acid3" and an alert containing the errors should come up.
Flags: needinfo?(tobbi.bugs)
Comment 6•7 years ago
|
||
(In reply to Tobias (:Tobbi) Markus from comment #5) > Click the capital "A" in "Acid3" and an alert containing the errors should > come up. Got it, thanks! So, it looks like test 23 and 25 failures are regressions since they fail on Nightly (today's build) but not on v54.0 release.
Comment 7•7 years ago
|
||
So, with mozregression, it's caused by Bug 1358104, but looking at the bug comments, it seems that the change was intentional.
Comment 9•7 years ago
|
||
Yes, the change was intentional and matches the spec. If Acid3 is not updated, we should consider it obsolete. If this causes PR problems, we should get together with the other implementers to make sure we're aligned, and possibly issue some sort of joint statement that Acid3 should be ignored.
Comment 13•3 years ago
|
||
Replying here, as this seems to be the only open bug for Acid 3 test.
Out of curiosity, after some recent bugs got fixed, I went to the Acid 3 test site.
As it turned out, the current "Beta" version of Firefox does not pass the test!
Interesting.
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•