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

dom namespace pollution/lack-of-separation #58

Open
eclectic923 opened this issue Jun 21, 2012 · 0 comments
Open

dom namespace pollution/lack-of-separation #58

eclectic923 opened this issue Jun 21, 2012 · 0 comments
Labels

Comments

@eclectic923
Copy link

Since input text for github doesn't get properly escaped, I'm using [] instead of angle braces.

I was looking at the source for one of the evergreen test pages.

    [div id="page"]
    [ul id="specs"]
    [div id="footer"]

I noticed that DOM name space wasn't apporopriately segragated from
the templates.

So, when I want to test my application's footer code, using a template...
boom $("#footer") selects the wrong thing. It should be selecting my footer
in the test div, but of course, it isn't because of the conflicting names.

Perhaps prefixing the DOM attribute names with the name of an evergreen
would solve the problem. Selecting one appropriate prefix would avoid a
DOM namespace collisions.

    [div id="pine_page"]
    [ul id="yew_specs"]
    [div id="fir_footer"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants