Skip to content

Commit e8ac6a7

Browse files
committed
Take Martin's suggestions.
1 parent c05bf0a commit e8ac6a7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

index.bs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3860,22 +3860,19 @@ may ship the feature as a nonstandard API.
38603860

38613861
When specifying how to accomplish a goal, write a single algorithm to do it,
38623862
instead of letting implementers pick between multiple algorithms.
3863+
38633864
It is very difficult to ensure that
38643865
two different algorithms produce the same results in all cases,
38653866
and doing so is rarely worth the cost.
38663867

3867-
Multiple algorithms seem particularly tempting when defining
3868-
how to parse file formats,
3869-
but they are an equally bad idea in that context.
3870-
38713868
<div class="example" id="html-polyglot">
38723869

38733870
[[html-polyglot inline]] was an attempt to define a common subset of both XHTML and HTML
38743871
that could be parsed into equivalent DOM trees
38753872
using either the [[HTML#the-xhtml-syntax|XHTML parsing]]
38763873
or [[HTML#syntax|HTML parsing]] algorithm.
38773874
Authors who tried to use this syntax tended to produce documents
3878-
that actually only worked with one of the two parsers.
3875+
that only worked with one of the two parsers.
38793876

38803877
</div>
38813878

0 commit comments

Comments
 (0)