Skip to content

Show if file is damaged #5

@danyill

Description

@danyill

Today I've been working with an SCL document.

removeIED (3) (1).scd.zip

I was noticing there is a parser error in it (I'm not sure exactly what) but we have the following below the root element:

	<parsererror xmlns="http://www.w3.org/1999/xhtml" style="display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black">
		<h3>This page contains the following errors:</h3>
		<div style="font-family:monospace;font-size:12px">error on line 536 at column 5: Extra content at the end of the document
		</div>
		<h3>Below is a rendering of the page up to the first error.</h3>
	</parsererror>

This is a fairly serious error of a broken document and yet the validator doesn't appear to show it.
I suspect it is only added when saving the document? I think that an error like this should be flagged to the end user ("We were unable to correctly serialise your document, I'm sorry, it is broken :-(").

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions