haikuwebkit/LayoutTests/accessibility/ios-simulator/attributed-string-for-eleme...

30 lines
644 B
HTML

<!DOCTYPE html>
<html>
<body id="body">
<div id="content">
hello <b>world</b> test <b>bold</b>
</div>
<p id="description"></p>
<div id="console"></div>
<script src="../../resources/js-test-pre.js"></script>
<script>
description("This test ensures that attributed string under the element works");
if (window.accessibilityController) {
var obj = accessibilityController.accessibleElementById("content");
var text = obj.attributedStringForElement();
debug("Attributed string: " + text);
}
successfullyParsed = true;
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>