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

DOCTYPE tag is supported by parser #235

Merged
merged 1 commit into from
Nov 16, 2018

Conversation

NikolasKomonen
Copy link
Contributor

@NikolasKomonen NikolasKomonen commented Nov 15, 2018

Refer to #221


Some tests need fixing.

doctype formatting tests disabled for this pr. Will be enabled next pr on for doctype formatting.


Fixes part of eclipse-lemminx#221
Doctype parsing setup. Internal DTD not complete, it instead stores as string

Signed-off-by: Nikolas Komonen <nikolaskomonen@gmail.com>
*
* @param child the node child to add.
*/
public void addChild(Node child) {
public void addChildAndSetItsParent(Node child) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't rename this method (keep simple name, and DOM w3c works like this)

@angelozerr
Copy link
Contributor

Very good job @NikolasKomonen ! I accept your PR, because I need it and I rename addChid again the method.

It should be really cool if you could implement <!ELEMENT, <!ATTRIBUTE, <!ENTITY and their attributes in order I fix #225

@angelozerr angelozerr merged commit 4f7357e into eclipse-lemminx:master Nov 16, 2018
@NikolasKomonen
Copy link
Contributor Author

@angelozerr Great!

if you could implement <!ELEMENT, <!ATTRIBUTE, <!ENTITY and their attributes

And thats my next task.

@angelozerr
Copy link
Contributor

Great! See my comments at #231 (comment)

@angelozerr
Copy link
Contributor

And thats my next task.

I'm waiting for that to adjust DTD error ranges, sorry I'm so impatient :)

@NikolasKomonen NikolasKomonen deleted the dtdParsing branch January 23, 2019 19:37
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