Open Bug 1830321 Opened 2 years ago Updated 1 years ago

HTML parser doesn't reset insertion mode correctly for <div><table><svg><foreignObject><select><table><s>

Categories

(Core :: DOM: HTML Parser, defect)

defect

Tracking

()

Tracking Status
firefox114 --- wontfix

People

(Reporter: zcorpan, Unassigned, NeedInfo)

Details

See https://github.com/html5lib/html5lib-tests/pull/163 and analysis in https://github.com/html5lib/html5lib-tests/issues/137

A slightly more minimal test would be

<table><svg><foreignObject><select><table>

where Firefox DOM is

| <html>
|   <head>
|   <body>
|     <svg svg>
|       <svg foreignObject>
|         <select>
|         <table>
|     <table>

but should be

| <html>
|   <head>
|   <body>
|     <svg svg>
|       <svg foreignObject>
|         <select>
|     <table>
|     <table>

Given I've never touched the parser code, this is going to be interesting for me to fix. So I'll give it a stab. If someone else want to fix this, please let me know!

Severity: -- → S3
Flags: needinfo?(sefeng)
You need to log in before you can comment on or make changes to this bug.