This is an automated email from the ASF dual-hosted git repository. gregdove pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push: new 3286bc7412 Avoid RTE due to attempting to set style inheritance on non-element (e.g. Text) descendant nodes under the strand. new 3307eff3f1 Merge branch 'develop' of https://github.com/apache/royale-asjs into develop 3286bc7412 is described below commit 3286bc741202fa295ed6c412525db17782ba8a8c Author: greg-dove <greg.d...@gmail.com> AuthorDate: Mon Oct 30 16:12:24 2023 +1300 Avoid RTE due to attempting to set style inheritance on non-element (e.g. Text) descendant nodes under the strand. --- .../org/apache/royale/html/beads/StyleInheritanceWithObserverBead.as | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/StyleInheritanceWithObserverBead.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/StyleInheritanceWithObserverBead.as index 281cf01232..98e6e544da 100644 --- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/StyleInheritanceWithObserverBead.as +++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/StyleInheritanceWithObserverBead.as @@ -79,7 +79,8 @@ package org.apache.royale.html.beads for (var i:int = 0; i < addedElements.length; i++) { var addedElement:WrappedHTMLElement = addedElements[i] as WrappedHTMLElement; - addedElement.style[styleName] = 'inherit'; + if(addedElement.nodeType === Node.ELEMENT_NODE) + addedElement.style[styleName] = 'inherit'; } } }