diff options
author | Peter Bengtsson <mail@peterbe.com> | 2021-08-02 18:03:13 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-02 19:03:13 -0300 |
commit | 1dc3d721e3b43d4ddaa52e0c3f6ffb81ec2088ed (patch) | |
tree | 6de13b1b6c1cb5f270b49d4862c3f06b3e4a195c /files/pt-br/glossary/speculative_parsing/index.html | |
parent | 86bfc6444602934695b25cee06320c49946e513c (diff) | |
download | translated-content-1dc3d721e3b43d4ddaa52e0c3f6ffb81ec2088ed.tar.gz translated-content-1dc3d721e3b43d4ddaa52e0c3f6ffb81ec2088ed.tar.bz2 translated-content-1dc3d721e3b43d4ddaa52e0c3f6ffb81ec2088ed.zip |
remove link 'title' attributes that's just the 'href' (pt-br, part 5) (#1849)
Diffstat (limited to 'files/pt-br/glossary/speculative_parsing/index.html')
-rw-r--r-- | files/pt-br/glossary/speculative_parsing/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/pt-br/glossary/speculative_parsing/index.html b/files/pt-br/glossary/speculative_parsing/index.html index 3a6c4495ff..12e4125574 100644 --- a/files/pt-br/glossary/speculative_parsing/index.html +++ b/files/pt-br/glossary/speculative_parsing/index.html @@ -18,7 +18,7 @@ original_slug: Web/HTML/Optimizing_your_pages_for_speculative_parsing <li>Don't write an unfinished token. <code><script>document.write("<div></div");</script></code> is bad.</li> <li>Don't finish your writing with a carriage return. <code><script>document.write("Hello World!\r");</script></code> is bad. <code><script>document.write("Hello World!\n");</script></code> is OK.</li> <li>Note that writing balanced tags may cause other tags to be inferred in a way that makes the write unbalanced. E.g. <code><script>document.write("<div></div>");</script></code> inside the <code>head</code> element will be interpreted as <code><script>document.write("</head><body><div></div>");</script></code> which is unbalanced.</li> - <li>Don't let the semicolon of a named character reference be the last thing that is written. Due to a <a class="link-https" href="https://bugzilla.mozilla.org/show_bug.cgi?id=535530" title="https://bugzilla.mozilla.org/show_bug.cgi?id=535530">bug</a> in Firefox 4 though 10 (fixed in Firefox 11), <code><script>document.write("foo&nbsp;");</script></code> causes a speculation failure. However, <code><script>document.write("&nbsp;foo");</script></code> is OK.</li> + <li>Don't let the semicolon of a named character reference be the last thing that is written. Due to a <a class="link-https" href="https://bugzilla.mozilla.org/show_bug.cgi?id=535530">bug</a> in Firefox 4 though 10 (fixed in Firefox 11), <code><script>document.write("foo&nbsp;");</script></code> causes a speculation failure. However, <code><script>document.write("&nbsp;foo");</script></code> is OK.</li> <li>Don't format part of a table. <code><table><script>document.write("<tr><td>Hello World!</td></tr>");</script></table></code> is bad. However, <code><script>document.write("</code><code><table></code><code><tr><td>Hello World!</td></tr></code><code></table></code><code>");</script></code> is OK.</li> <li>TODO: document.write inside other formatting elements.</li> </ul> |