aboutsummaryrefslogtreecommitdiff
path: root/files/pt-br/glossary/speculative_parsing/index.html
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2021-08-02 18:03:13 -0400
committerGitHub <noreply@github.com>2021-08-02 19:03:13 -0300
commit1dc3d721e3b43d4ddaa52e0c3f6ffb81ec2088ed (patch)
tree6de13b1b6c1cb5f270b49d4862c3f06b3e4a195c /files/pt-br/glossary/speculative_parsing/index.html
parent86bfc6444602934695b25cee06320c49946e513c (diff)
downloadtranslated-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.html2
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>&lt;script&gt;document.write("&lt;div&gt;&lt;/div");&lt;/script&gt;</code> is bad.</li>
<li>Don't finish your writing with a carriage return. <code>&lt;script&gt;document.write("Hello World!\r");&lt;/script&gt;</code> is bad. <code>&lt;script&gt;document.write("Hello World!\n");&lt;/script&gt;</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>&lt;script&gt;document.write("&lt;div&gt;&lt;/div&gt;");&lt;/script&gt;</code> inside the <code>head</code> element will be interpreted as <code>&lt;script&gt;document.write("&lt;/head&gt;&lt;body&gt;&lt;div&gt;&lt;/div&gt;");&lt;/script&gt;</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>&lt;script&gt;document.write("foo&amp;nbsp;");&lt;/script&gt;</code> causes a speculation failure. However, <code>&lt;script&gt;document.write("&amp;nbsp;foo");&lt;/script&gt;</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>&lt;script&gt;document.write("foo&amp;nbsp;");&lt;/script&gt;</code> causes a speculation failure. However, <code>&lt;script&gt;document.write("&amp;nbsp;foo");&lt;/script&gt;</code> is OK.</li>
<li>Don't format part of a table. <code>&lt;table&gt;&lt;script&gt;document.write("&lt;tr&gt;&lt;td&gt;Hello World!&lt;/td&gt;&lt;/tr&gt;");&lt;/script&gt;&lt;/table&gt;</code> is bad. However, <code>&lt;script&gt;document.write("</code><code>&lt;table&gt;</code><code>&lt;tr&gt;&lt;td&gt;Hello World!&lt;/td&gt;&lt;/tr&gt;</code><code>&lt;/table&gt;</code><code>");&lt;/script&gt;</code> is OK.</li>
<li>TODO: document.write inside other formatting elements.</li>
</ul>