W3C home > Mailing lists > Public > www-amaya@w3.org > July to September 2007

Copy/Paste, lang attribute and check spelling

From: Stéphane Gully <stephane.gully@gmail.com>
Date: Mon, 23 Jul 2007 12:45:02 +0200
Message-ID: <9b3efaca0707230345s693a407v73abca779594a0d7@mail.gmail.com>
To: www-amaya@w3.org

Hello amaya team,

I found a small bug that is described in this scenario:

1- Open an English document (with lang="en" attribute)
2- Open a french document (with lang="fr" attribute)
3- Create a <p> element which contains "here is a small tet" in the
English document
4- Select the <p> element (with F2 key) then copy it (with CTRL-C)
5- Paste the <p> in the french document
6- Put your cursor at the <p> beginning and then activate the check
spelling function (F7)

The check speller will stop on "tet" word but it will still consider
that the text is in English. The expected behavior is : either the
lang="en" attribute is assigned automatically to the pasted paragraph,
or the paragraph language is automatically set to French (internally).

regards,

-- 
Stéphane GULLY
http://www.zeitoun.net
Received on Monday, 23 July 2007 23:33:32 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 April 2014 11:01:47 UTC