? ? Pending

User tests: Successful: Unsuccessful:

avatar ReLater
ReLater
22 Nov 2020

References #29108

Summary of Changes

  • See code change tabulator above ("Changed files").

Testing Instructions

  • Apply patch.
  • Enter an invalid CSS selector class for "Blog Class (Leading Articles)" in a featured menu item.
  • Addition: ...or in a blog menu item.
  • See that saving of menu item is blocked.
  • Enter a valid selector.
  • See that saving is not blocked.
avatar ReLater ReLater - open - 22 Nov 2020
avatar ReLater ReLater - change - 22 Nov 2020
Status New ⇒ Pending
avatar joomla-cms-bot joomla-cms-bot - change - 22 Nov 2020
Category ⇒ Front End com_content
avatar ReLater ReLater - change - 22 Nov 2020
The description was changed
avatar ReLater ReLater - edited - 22 Nov 2020
avatar ReLater ReLater - change - 22 Nov 2020
The description was changed
avatar ReLater ReLater - edited - 22 Nov 2020
avatar ceford ceford - test_item - 23 Nov 2020 - Tested successfully
avatar ceford
ceford - comment - 23 Nov 2020

I have tested this item ✅ successfully on 0e0553a

Do we have the invalid characters documented somewhere? Just thinking what might go in the Help screen.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31459.

avatar gostn gostn - test_item - 23 Nov 2020 - Tested successfully
avatar gostn
gostn - comment - 23 Nov 2020

I have tested this item ✅ successfully on 0e0553a


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31459.

avatar ChristineWk
ChristineWk - comment - 23 Nov 2020

@ReLater Could you also check with "blog item" please? Because after entering an invalid class under: Menu Blog > Blog Layout > Blog Class (Leading Articles) I got: Menu saved.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31459.

avatar ReLater ReLater - change - 23 Nov 2020
Labels Added: ?
avatar ReLater
ReLater - comment - 23 Nov 2020

Have added commit for blog_class_leading

avatar ReLater ReLater - change - 23 Nov 2020
The description was changed
avatar ReLater ReLater - edited - 23 Nov 2020
avatar ReLater
ReLater - comment - 23 Nov 2020

Do we have the invalid characters documented somewhere? Just thinking what might go in the Help screen.

I think it's easier to define what is allowed.

The official spec.:
https://www.w3.org/TR/CSS21/syndata.html#characters

For me this sentence is sufficient:

In CSS, identifiers (including element names, classes, and IDs in selectors) can contain only the characters [a-zA-Z0-9] and ISO 10646 characters U+00A0 and higher, plus the hyphen (-) and the underscore (_); they cannot start with a digit, two hyphens, or a hyphen followed by a digit. Identifiers can also contain escaped characters and any ISO 10646 character as a numeric code (see next item). For instance, the identifier "B&W?" may be written as "B\&W\?" or "B\26 W\3F".

avatar ChristineWk
ChristineWk - comment - 23 Nov 2020

Tried again for blog_class_leading. With updated Patch, response: Invalid field: Blog Class (Leading Articles)
Seems OK?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31459.

avatar ChristineWk
ChristineWk - comment - 23 Nov 2020

Tried again for blog_class_leading. With updated Patch, response: Invalid field: Blog Class (Leading Articles)
Seems OK?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31459.

avatar ReLater
ReLater - comment - 23 Nov 2020

Whenever you enter an invalid CSS class and get a warning: It's a successfull test.

When you enter a valid one and get a warning it's not successful. But then zero-24 should have a look on this issue. Then something is wrong with the new filter rule. And we need the classes you have tested with.

avatar ceford ceford - test_item - 24 Nov 2020 - Tested successfully
avatar ceford
ceford - comment - 24 Nov 2020

I have tested this item ✅ successfully on fd4bf8f

OK!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31459.

avatar gostn gostn - test_item - 24 Nov 2020 - Tested successfully
avatar gostn
gostn - comment - 24 Nov 2020

I have tested this item ✅ successfully on fd4bf8f


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31459.

avatar ChristineWk ChristineWk - test_item - 24 Nov 2020 - Tested successfully
avatar ChristineWk
ChristineWk - comment - 24 Nov 2020

I have tested this item ✅ successfully on fd4bf8f


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31459.

avatar alikon alikon - change - 24 Nov 2020
Status Pending ⇒ Ready to Commit
avatar alikon
alikon - comment - 24 Nov 2020

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31459.

avatar richard67 richard67 - change - 24 Nov 2020
Status Ready to Commit ⇒ Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 ⇒ 2020-11-24 11:07:19
Closed_By ⇒ richard67
Labels Added: ?
avatar richard67 richard67 - close - 24 Nov 2020
avatar richard67 richard67 - merge - 24 Nov 2020
avatar richard67
richard67 - comment - 24 Nov 2020

Thanks!

Add a Comment

Login with GitHub to post a comment