Skip to content

Commit 5a1f481

Browse files
Make some minor fixes to the FAQ
This change is minor cleanup for 5d512fe
1 parent 05a109f commit 5a1f481

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

FAQ.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ For a few cases that someone did take the time document, the information can be
9292
* [Why no script implements](https://wiki.whatwg.org/wiki/Why_no_script_implements)
9393
* [Why not reuse legend](https://wiki.whatwg.org/wiki/Why_not_reuse_legend) or another _mini-header_ element.
9494

95-
Also see _HTML feature proposals_ below.
95+
Also see [HTML feature proposals](#html-feature-proposals).
9696

9797
## HTML syntax issues
9898

@@ -141,7 +141,7 @@ Fundamentally, this is an XML issue, and is not specific to HTML documents deliv
141141

142142
### How are documents from HTML4 and earlier versions parsed?
143143

144-
All documents with a `text/html` media type (that is, including those without or with an HTML 2.0, HTML 3.2, HTML4, or XHTML1 DOCTYPE) will be parsed using the same parser algorithm as defined by the HTML spec. This matches what web browsers have done for HTML documents so far and keeps code complexity down. That in turn is good for security, maintainability, and in general keeping the amount of bugs down. The HTML syntax as now defined therefore does not require a per-version parser, and documents with an HTML4 DOCTYPE for example will be parsed as described by the new HTML specification.
144+
All documents with a `text/html` media type (that is, including those without or with an HTML 2.0, HTML 3.2, HTML4, or XHTML1 DOCTYPE) will be parsed using the same parser algorithm as defined by the HTML spec. This matches what web browsers have done for HTML documents so far and keeps code complexity down. That in turn is good for security, maintainability, and in general keeping the amount of bugs down. The HTML syntax as now defined therefore does not require a per-version parser, and documents with an HTML4 DOCTYPE for example will be parsed as described by the HTML specification.
145145

146146
Validators are allowed to have different code paths for previous levels of HTML.
147147

@@ -187,7 +187,7 @@ In the XML syntax, you are required to specify the namespace:
187187
<html xmlns="http://www.w3.org/1999/xhtml">
188188
```
189189

190-
In `text/html` documents, the `xmlns` attribute is currently allowed on any HTML element, but only if it has the value `http://www.w3.org/1999/xhtml`. It doesn't do anything at all; it is merely allowed for the purpose of easing migration from XHTML1. It is not actually a namespace declaration in HTML, because HTML doesn't support namespaces. See the question "[Will there be support for namespaces in HTML?](#will-there-be-support-for-namespaces-in-html)".
190+
In `text/html` documents, the `xmlns` attribute is currently allowed on any HTML element, but only if it has the value `http://www.w3.org/1999/xhtml`. It doesn't do anything at all; it is merely allowed for the purpose of easing migration from XHTML1. It is not actually a namespace declaration in HTML, because HTML doesn't support namespaces. See the question "[What about namespaces in HTML?](#what-about-namespaces-in-html)".
191191

192192
### What about namespaces in HTML?
193193

0 commit comments

Comments
 (0)