File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -111,14 +111,9 @@ window.ph_text = function(sel) {
111111 if ( el . textContent === undefined )
112112 throw new Error ( sel + " can not have text" ) ;
113113
114- // HACK: https://github.com/patternfly/patternfly-react/issues/11678
115- const el_copy = el . cloneNode ( true ) ;
116- // find and clear .pf-v6-screen-reader subelements for HelperText
117- el_copy . querySelectorAll ( '.pf-v6-c-helper-text__item-text > .pf-v6-screen-reader' ) . forEach ( el => { el . textContent = '' } ) ;
118-
119114 // 0xa0 is a non-breakable space, which is a rendering detail of Chromium
120115 // and awkward to handle in tests; turn it into normal spaces
121- return el_copy . textContent . replaceAll ( "\xa0" , " " ) ;
116+ return el . textContent . replaceAll ( "\xa0" , " " ) ;
122117} ;
123118
124119window . ph_attr = function ( sel , attr ) {
You can’t perform that action at this time.
0 commit comments