Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
pike
pike
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 105
    • Issues 105
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pikelang
  • pikepike
  • Issues
  • #5466

Closed
Open
Opened May 06, 2010 by Peter Bortas@zinoOwner

XML parser doesn't flag errors for <?xml ...?> in wrong places

Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=5466

Reported by Jonas Wallden jonasw@roxen.com

When the XML parser encounters a directive in unexpected places (i.e. not at the very beginning of the document modulo BOM) it is handled incorrectly:

  • It is accepted in violiation of the spec (§2.6, http://www.w3.org/TR/REC-xml/#sec-pi).

  • The comment in compat_allow_errors() says Pike treats it as a normal PI when using the strictest setting.

  • The parser callback is invoked with the "<?xml" type and not the "<?" type, thus flagging is as a real XML header and failing in the misguided intention to identify it as a PI.

Assignee
Assign to
Pike 7.8
Milestone
Pike 7.8
Assign milestone
Time tracking
None
Due date
None
Reference: pikelang/pike#5466