Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show if file is damaged #5

Open
danyill opened this issue Mar 29, 2024 · 0 comments
Open

Show if file is damaged #5

danyill opened this issue Mar 29, 2024 · 0 comments

Comments

@danyill
Copy link

danyill commented Mar 29, 2024

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 :-(").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant