New issue
Advanced search Search tips

Issue 843518 link

Starred by 3 users

Issue metadata

Status: Duplicate
Merged: issue 698130
Owner: ----
Closed: May 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

DOMParser.parseFromString should return parsererror with proper namespace

Reported by stefanpr...@kolabnow.com, May 16 2018

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/65.0.3325.181 Chrome/65.0.3325.181 Safari/537.36

Steps to reproduce the problem:
1. new DOMParser().parseFromString('<xml>', 'text/xml')

What is the expected behavior?
As per spec DOMParser should return <parsererror xmlns="http://www.mozilla.org/newlayout/xml/parsererror.xml"> when encountering a parsing error.

What went wrong?
Chromium returns a <parsererror> element but does not set the namespace.
See spec: https://w3c.github.io/DOM-Parsing/#x2-1-the-domparser-interface

Did this work before? No 

Chrome version: 65.0.3325.181  Channel: n/a
OS Version: 
Flash Version:
 
Labels: Needs-Triage-M65
Labels: -Needs-Triage-M65 Needs-Milestone

Comment 3 by tkent@chromium.org, May 17 2018

Mergedinto: 698130
Status: Duplicate (was: Unconfirmed)

Sign in to add a comment