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

Code actions for RootElementTypeMustMatchDoctypedecl #561

Closed
xorye opened this issue Aug 22, 2019 · 0 comments · Fixed by #674
Closed

Code actions for RootElementTypeMustMatchDoctypedecl #561

xorye opened this issue Aug 22, 2019 · 0 comments · Fixed by #674
Assignees
Labels
code action enhancement New feature or request
Milestone

Comments

@xorye
Copy link

xorye commented Aug 22, 2019

As mentioned in #537

Given this XML file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE efgh [ 
<!ELEMENT abcd (#PCDATA)>
<!ELEMENT efgh (#PCDATA)>
]> 
<abcd/>

A CodeAction could be replace abcd with efgh. This CodeAction should take care of the 2 cases:

  • <abcd/> should be replaced with <efgh/>
  • <abcd></abcd> should be replaced with <efgh></efgh>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code action enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants