:empty pseudo-class not being cleared adding a fragment with multiple children

Fixed Issue #1008837

Details

Created
Oct 29, 2014
Privacy
This issue is public.
Reports
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

URL:

Repro Steps:

Create a class with the :empty pseudo selector.
Create a DOM element (div) with that class and give it some content text.
Create a document fragment.
Create two child elements.
Set child elements content.
Append child elements to fragment.
Empty the DOM element.
Append the document fragment to the DOM element.
Note that the DOM element :empty remains even though the element is no longer empty.

http://codepen.io/craigjennings11/pen/eEDja

Expected Results:

The expected behavior is that when an element is emptied the :empty pseudo class should be removed.

Actual Results:

Dev Channel specific:

No

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Christian F.”

      Changed Assigned To from “Christian F.” to “Bogdan B.”

      Changed Assigned To from “Bogdan B.” to “IE F.”

      Changed Status to “Won’t fix”

      Changed Status from “Won’t fix” to “Fixed”

    You need to sign in to your Microsoft account to add a comment.

    Sign in