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 @@ -3860,22 +3860,19 @@ may ship the feature as a nonstandard API.
38603860
38613861When specifying how to accomplish a goal, write a single algorithm to do it,
38623862instead of letting implementers pick between multiple algorithms.
3863+
38633864It is very difficult to ensure that
38643865two different algorithms produce the same results in all cases,
38653866and 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
38743871that could be parsed into equivalent DOM trees
38753872using either the [[HTML#the-xhtml-syntax|XHTML parsing]]
38763873or [[HTML#syntax|HTML parsing]] algorithm.
38773874Authors 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
You can’t perform that action at this time.
0 commit comments