From 1dc3d721e3b43d4ddaa52e0c3f6ffb81ec2088ed Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Mon, 2 Aug 2021 18:03:13 -0400 Subject: remove link 'title' attributes that's just the 'href' (pt-br, part 5) (#1849) --- files/pt-br/glossary/speculative_parsing/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'files/pt-br/glossary/speculative_parsing') 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
  • Don't write an unfinished token. <script>document.write("<div></div");</script> is bad.
  • Don't finish your writing with a carriage return. <script>document.write("Hello World!\r");</script> is bad. <script>document.write("Hello World!\n");</script> is OK.
  • Note that writing balanced tags may cause other tags to be inferred in a way that makes the write unbalanced. E.g. <script>document.write("<div></div>");</script> inside the head element will be interpreted as <script>document.write("</head><body><div></div>");</script> which is unbalanced.
  • -
  • Don't let the semicolon of a named character reference be the last thing that is written. Due to a bug in Firefox 4 though 10 (fixed in Firefox 11), <script>document.write("foo&nbsp;");</script> causes a speculation failure. However, <script>document.write("&nbsp;foo");</script> is OK.
  • +
  • Don't let the semicolon of a named character reference be the last thing that is written. Due to a bug in Firefox 4 though 10 (fixed in Firefox 11), <script>document.write("foo&nbsp;");</script> causes a speculation failure. However, <script>document.write("&nbsp;foo");</script> is OK.
  • Don't format part of a table. <table><script>document.write("<tr><td>Hello World!</td></tr>");</script></table> is bad. However, <script>document.write("<table><tr><td>Hello World!</td></tr></table>");</script> is OK.
  • TODO: document.write inside other formatting elements.
  • -- cgit v1.2.3-54-g00ecf