File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -3509,22 +3509,19 @@ may ship the feature as a nonstandard API.
35093509
35103510When specifying how to accomplish a goal, write a single algorithm to do it,
35113511instead of letting implementers pick between multiple algorithms.
3512+
35123513It is very difficult to ensure that
35133514two different algorithms produce the same results in all cases,
35143515and 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
35233520that could be parsed into equivalent DOM trees
35243521using either the [[HTML#the-xhtml-syntax|XHTML parsing]]
35253522or [[HTML#syntax|HTML parsing]] algorithm.
35263523Authors 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
You can’t perform that action at this time.
0 commit comments