Re: [whatwg/dom] Further Attr node fixes for compareDocumentPosition() (#312)

>  
> - <li><p>If <var>node1</var> is a <a>descendant</a> of <var>node2</var>, then return the result of
> - adding {{Node/DOCUMENT_POSITION_CONTAINED_BY}} to {{Node/DOCUMENT_POSITION_FOLLOWING}}.
> + <li><p>If <var>node1</var> is a <a>descendant</a> of <var>node2</var>, or <var>node1</var> is
> + <var>node2</var> and <var>attr1</var> is non-null, then return the result of adding
> + {{Node/DOCUMENT_POSITION_CONTAINED_BY}} to {{Node/DOCUMENT_POSITION_FOLLOWING}}.
>  
>   <li><p>If <var>node1</var> is <a>preceding</a> <var>node2</var>, then return

How can we end up here with either node1 or node2 being null?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/312/files/96cb8745f57621bb3a5effe9211baf96f52c5849#r76779114

Received on Tuesday, 30 August 2016 11:47:09 UTC