Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

Use class attribute in embedded links to reduce span elements #233

Open
damithc opened this issue Dec 20, 2016 · 0 comments
Open

Use class attribute in embedded links to reduce span elements #233

damithc opened this issue Dec 20, 2016 · 0 comments

Comments

@damithc
Copy link
Contributor

damithc commented Dec 20, 2016

In many places where embedded links are used, the inside <span class="embedded-link"> element can be eliminated by adding class="embedded-link" to the outside <span> element.
This code

<span onclick="getContentUsingAjax('handbook-project-v04', '#embedded-week11-handbook');">
    <span class="embedded-link">V0.4 Requirements</span>
</span>

can be shortened as

<span onclick="getContentUsingAjax('handbook-project-v04', '#embedded-week11-handbook');" class="embedded-link">
    V0.4 Requirements
</span>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant