Skip to content
Prev Previous commit
Next Next commit
Try to fix mobile unit test
  • Loading branch information
t-hamano committed Jul 31, 2025
commit c96f0ee94990502d4c5b10f4f23ea48c3f7502fe
2 changes: 1 addition & 1 deletion packages/block-library/src/list/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function createListBlockFromDOMElement( listElement ) {
const type = listElement.getAttribute( 'type' );
const listAttributes = {
ordered: 'OL' === listElement.tagName,
anchor: listElement.id === '' ? undefined : listElement.id,
anchor: listElement.id ? listElement.id : undefined,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without making this change, the mobile unit tests will fail. See: http://github.com/WordPress/gutenberg/actions/runs/16643294936/job/47097872501

start: listElement.getAttribute( 'start' )
? parseInt( listElement.getAttribute( 'start' ), 10 )
: undefined,
Expand Down
Loading