[HTML5] Parser does not return to SVG namespace after encountering foreignObject with html and body tags

RESOLVED FIXED in mozilla2.0b4

Status

()

Core
HTML: Parser
P2
normal
RESOLVED FIXED
8 years ago
8 years ago

People

(Reporter: longsonr, Unassigned)

Tracking

({testcase})

Trunk
mozilla2.0b4
x86
Windows Vista
testcase
Points:
---
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Comment hidden (empty)
(Reporter)

Comment 1

8 years ago
Created attachment 456383 [details]
testcase
(Reporter)

Updated

8 years ago
Summary: [HTML5] Parser does not return to SVG mode after encountering foreignObject with html and body tags → [HTML5] Parser does not return to SVG namespace after encountering foreignObject with html and body tags
(Reporter)

Updated

8 years ago
Keywords: testcase

Comment 2

8 years ago
Thanks for building that test case, I now understand better what is meant by  "smallest possible test case." That is more minimalist that I normally conceive of a page being and illustrates exactly the problem. The test case renders correctly in FireFox 3.6.3 on Xubuntu 10.04 and 3.6.6 on Windows XP with html5.enable set to true. The test case does not render correctly in Mozilla Developer Preview 3.7 alpha 5 nor in FireFox 4 beta 1 on Windows XP. Gecko 1.9.2 renders the page correctly, Gecko 1.9.3 does not. 

For what it might be worth, a far less minimalist page which includes thumbnail images of the page correctly rendered and incorrectly rendered is available at:
http://www.comfsm.fm/~dleeling/tech/foreignObject.html
at least when the power is on here on the island of Pohnpei. 

In a parallel vein, the foreignObject.html web page does not validate at validator.nu, failing at the html element in the foreignObject at line 42 (stray html start tag). If the html chunk inside the foreignObject is deleted, then the page validates. The same foreignObject with the html code chunk validates when submitted as part of a valid xhtml5 document with namespaces.
Depends on: 579867
Priority: -- → P2
(Reporter)

Comment 3

8 years ago
Fixed by check in for bug 579867 (that bug includes a reftest too).
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b4
You need to log in before you can comment on or make changes to this bug.