File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -833,8 +833,8 @@ <h2>Extensions to the <code title>Element</code> Interface</h2>
833833< div class ='example '>
834834 < p > The following snippet gets the dimensions of the first
835835 < code title > div</ code > element in a document:</ p >
836- < pre > var example = document.getElementsByTagName(" div" )[0].getBoundingClientRect();
 ;
837- var exampleWidth = example.width;

836+ < pre > var example = document.getElementsByTagName(" div" )[0].getBoundingClientRect();
837+ var exampleWidth = example.width;
838838var exampleHeight = example.height;</ pre >
839839</ div >
840840
@@ -844,6 +844,7 @@ <h2>Extensions to the <code title>Element</code> Interface</h2>
844844 < li > < p > < span title ='scroll an element into view '> Scroll the element into view</ span > with the
845845 < i > align to top flag</ i > set if < var > top</ var > is true, and the scroll behavior being the value of the < code title > behavior</ code >
846846 dictionary member of < var > options</ var > .</ p > </ li >
847+ < li > < p > Optionally perform some other action that brings the element to the user's attention.
847848</ ol >
848849
849850< p > The < dfn title =dom-Element-scrollTop > < code > scrollTop</ code > </ dfn > attribute must return the result of running these steps:</ p >
You can’t perform that action at this time.
0 commit comments