You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The HTML in the task is incorrect. That's the reason of the odd thing.
2
2
3
-
The browser has to fix it automatically. But there may be no text inside the `<table>`: according to the spec only table-specific tags are allowed. So the browser adds`"aaa"`*before* the `<table>`.
3
+
The browser has to fix it automatically. But there may be no text inside the `<table>`: according to the spec only table-specific tags are allowed. So the browser shows`"aaa"`*before* the `<table>`.
4
4
5
5
Now it's obvious that when we remove the table, it remains.
6
6
7
-
The question can be easily answered by exploring the DOM using the browser tools. It shows`"aaa"` before the `<table>`.
7
+
The question can be easily answered by exploring the DOM using the browser tools. You'll see`"aaa"` before the `<table>`.
8
8
9
9
The HTML standard specifies in detail how to process bad HTML, and such behavior of the browser is correct.
0 commit comments