Skip to content

Commit d414b30

Browse files
committed
Take Martin's suggestions.
1 parent 6474656 commit d414b30

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
@@ -3509,22 +3509,19 @@ may ship the feature as a nonstandard API.
35093509

35103510
When specifying how to accomplish a goal, write a single algorithm to do it,
35113511
instead of letting implementers pick between multiple algorithms.
3512+
35123513
It is very difficult to ensure that
35133514
two different algorithms produce the same results in all cases,
35143515
and doing so is rarely worth the cost.
35153516

3516-
Multiple algorithms seem particularly tempting when defining
3517-
how to parse file formats,
3518-
but they are an equally bad idea in that context.
3519-
35203517
<div class="example" id="html-polyglot">
35213518

35223519
[[html-polyglot inline]] was an attempt to define a common subset of both XHTML and HTML
35233520
that could be parsed into equivalent DOM trees
35243521
using either the [[HTML#the-xhtml-syntax|XHTML parsing]]
35253522
or [[HTML#syntax|HTML parsing]] algorithm.
35263523
Authors who tried to use this syntax tended to produce documents
3527-
that actually only worked with one of the two parsers.
3524+
that only worked with one of the two parsers.
35283525

35293526
</div>
35303527

0 commit comments

Comments
 (0)