Skip to content

Warning promotion: Throw on writing invalid XML tag names #6233

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

Closed
wants to merge 1 commit into from

Conversation

dtakken
Copy link

@dtakken dtakken commented Sep 29, 2020

I know I'm late with this one, so please ignore it if time is too short.

This change throws a ValueError when an invalid tag name is passed to XMLWriter.

The rationale is that this indicates a programming error because tag names typically originate from string literals or application code generating them. This translates into either a typo or a flaw in tag generation logic.

@php-pulls php-pulls closed this in 6dac6a9 Sep 29, 2020
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

Successfully merging this pull request may close these issues.

2 participants