Opened 4 years ago

Last modified 3 years ago

#13672 confirmed Bug

Valid characters for Anchor name

Reported by: Fabien Leconte Owned by:
Priority: Normal Milestone:
Component: General Version: 4.0
Keywords: Cc:

Description

Hi,

The validate function of the element "txtName" of the anchor dialog only test if the input has a value.

According to the following links, it should also tests that the value only contains valid characters for an "id" attribute :

HTML 4 : http://www.w3.org/TR/html4/types.html#type-id

HTML 5 : http://www.w3.org/TR/html5/dom.html#the-id-attribute

Steps to reproduce

  1. Create an anchor with "4TESTING PURPOSE" as a value
  2. Click "Ok" button

Expected result

An alert is raised as it is not a valid "id" attribute

Actual result

The content is inserted without any warning.

Thanks.

Best regards.

Change History (2)

comment:1 Changed 4 years ago by Fabien Leconte

Summary: Allowed characters for Anchor nameValid characters for Anchor name

comment:2 Changed 3 years ago by Jakub Ś

Status: newconfirmed
Version: 4.5.34.0
Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy