This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25 - preparse() called twice per request
Summary: preparse() called twice per request
Alias: None
Product: Validator
Classification: Unclassified
Component: Parser (show other bugs)
Version: 0.6.0b1
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Terje Bless
QA Contact:
Depends on:
Reported: 2002-10-25 19:45 UTC by Ville Skyttä
Modified: 2002-10-27 15:13 UTC (History)
0 users

See Also:


Description Ville Skyttä 2002-10-25 19:45:24 UTC
It looks like preparse() is being called twice per request; first with the
commentary "Try to extract META charset" and second with "Try to extract a
DOCTYPE or xmlns.".

Maybe the latter should just be removed.
Comment 1 Terje Bless 2002-10-27 10:13:38 UTC
Two things happen between the two calls to &preparse:

  1) The document is converted into UTF-8.
  2) The DOCTYPE is replaced (if override is in effect).

The second call to &preparse may succeede where the first failed if the document
was originally in a non-"asciipatible" encoding and it needs to be done after
the new DOCTYPE is inserted to pick up the new DOCTYPE (cf. Bug #47).