This is a problem with trying to maintain the correctness of my html semantics.
I have a parent button that performs both functions on the same page and acts as a parent tag for a large container that contains a binding that redirects to another page, and a div tag that also acts as a parent for another button that should perform some actions .
<button>
<div id="the-most-big-container"
<a href="http://www.RedirectMeToAnotherPage.com"></a>
<div>
<button> do some action </button>
</div>
</div>
</button>
I tried to attach this button, gave it a class and id, and none of the properties that I apply to the class, and the identifier will not be executed on the child button, moreover. The child button will completely exit the large container and lie in the DOM itself, just as it is a complete independent tag, not nested by any other tag.
[Update]
-, , , , , css DOM , ?
, .
ex: div,
, (- , div), -, , , , ---.