Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pike pike
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 121
    • Issues 121
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pikelang
  • pikepike
  • Issues
  • #5466
Closed
Open
Created 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
Time tracking