Skip to content

Commit b2bff50

Browse files
committed
closes #2525
1 parent d4feed3 commit b2bff50

File tree

1 file changed

+2
-2
lines changed
  • 2-ui/1-document/07-modifying-document/5-why-aaa

1 file changed

+2
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
The HTML in the task is incorrect. That's the reason of the odd thing.
22

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>`.
44

55
Now it's obvious that when we remove the table, it remains.
66

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>`.
88

99
The HTML standard specifies in detail how to process bad HTML, and such behavior of the browser is correct.

0 commit comments

Comments
 (0)