Issue metadata
Sign in to add a comment
|
Element.innerText does not properly handle floats and absolutely-positioned elements
Reported by
innovati...@gmail.com,
Jun 19 2018
|
||||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/66.0.3359.181 Chrome/66.0.3359.181 Safari/537.36 Steps to reproduce the problem: 1. visit test page (see attached html) 2. call document.documentElement.innerText What is the expected behavior? According the specs: https://html.spec.whatwg.org/multipage/dom.html#the-innertext-idl-attribute "If node's used value of 'display' is block-level or 'table-caption', then append 1 (a required line break count) at the beginning and end of items. [CSSDISPLAY] Floats and absolutely-positioned elements fall into this category." I expect to get: "foo bar" What went wrong? "foobar" Did this work before? N/A Chrome version: 66.0.3359.181 Channel: stable OS Version: Ubuntu 16.04 Flash Version: Firefox, Edge and IE handle this correctly.
,
Jun 20 2018
|
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by bokan@chromium.org
, Jun 19 2018Status: Untriaged (was: Unconfirmed)