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 861 - &is_xml() and $File->{Type} use deprecated conf/type.cfg
Summary: &is_xml() and $File->{Type} use deprecated conf/type.cfg
Status: RESOLVED FIXED
Alias: None
Product: Validator
Classification: Unclassified
Component: Types Registry (show other bugs)
Version: 0.7.0
Hardware: All All
: P2 blocker
Target Milestone: 0.7.0
Assignee: Terje Bless
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 856
  Show dependency treegraph
 
Reported: 2004-09-02 21:07 UTC by Terje Bless
Modified: 2005-02-04 18:43 UTC (History)
0 users

See Also:


Attachments

Description Terje Bless 2004-09-02 21:07:12 UTC
The &is_foo() (e.g. &is_xml()) functions, and the $File->{Type} attribute, make
use of the data (and accompanying logic) from the deprecated conf/type.cfg.

This should be ripped out and replaced with something making use of the new
Types Registry, but it needs to be done carefully since this logic is hairy
and determines XML vs. SGML mode using heuristics and DWIMery.

It's likely the Type Registry needs to be unraveled to provide a Content-Type
 -> Parse Mode (XML vs. SGML) mapping, or to compute it on the fly. Possibly
this wants a third "UNDETERMINED" state for ambigious cases like "text/html"
where we may be parsing XHTML or MathML (which need XML mode and not SGML
mode as the Content-Type alone would indicate).
Comment 1 Terje Bless 2005-02-04 18:43:26 UTC
New code just landed. --> Closing.