Closed Bug 457806 Opened 14 years ago Closed 14 years ago
<source> child of <audio> causes HTML parser to enter infinite loop
An audio element with a child source element causes the parser to enter an infinite loop. Looking at the nsHTMLElement definition for source in nsElementTable.cpp, it has a req-parent of eHTMLTag_video: /*req-parent excl-parent*/ eHTMLTag_video,eHTMLTag_unknown, I'm not familiar with the parser, so this is somewhat of a blind fix, but changing this to eHTMLTag_unknown fixes the infinite loop, allows a child source element of an audio element, and does not seem to allow a source element elsewhere in the document (e.g. a source element outside of audio or video does not show up via document.getElementsByTagName--presumably the special parent handling deals with this anyway).
Forgot to mention: included in the patch, I updated one of the existing mochitests in content/media/video to test for this bug.
Comment on attachment 341051 [details] [diff] [review] trivial patch Blake should review this.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.