You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Vasily Zakharov (JIRA)" <ji...@apache.org> on 2007/08/07 12:09:59 UTC

[jira] Created: (HARMONY-4606) [classlib][swing][html] tag behaves incorrectly

[classlib][swing][html] <a> tag behaves incorrectly
---------------------------------------------------

                 Key: HARMONY-4606
                 URL: https://issues.apache.org/jira/browse/HARMONY-4606
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Vasily Zakharov
         Attachments: Harmony.jpg, RI.jpg

In Harmony the text in <a> tag becomes blue and underlined even if href attribute is absent.
In RI it only gets this look if href attribute is present.

Here's the simple test demonstrating the problem:

import java.awt.event.*;
import javax.swing.*;
public class Test {
    public static void main(String argv[]) {
        JFrame frame = new JFrame("Test");
        frame.addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent event){
                System.exit(0);
            }
        });
        JEditorPane editorPane = new JEditorPane("text/html", "text<br><a>aaa</a><br><a href=\"\">href</a>");
        frame.add(editorPane);
        frame.setSize(150, 150);
        frame.setVisible(true);
    }
}


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-4606) [classlib][swing][html] tag behaves incorrectly

Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-4606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12518134 ] 

Vasily Zakharov commented on HARMONY-4606:
------------------------------------------

Attached screenshots demonstrating the problem.


> [classlib][swing][html] <a> tag behaves incorrectly
> ---------------------------------------------------
>
>                 Key: HARMONY-4606
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4606
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Vasily Zakharov
>         Attachments: Harmony.jpg, RI.jpg
>
>
> In Harmony the text in <a> tag becomes blue and underlined even if href attribute is absent.
> In RI it only gets this look if href attribute is present.
> Here's the simple test demonstrating the problem:
> import java.awt.event.*;
> import javax.swing.*;
> public class Test {
>     public static void main(String argv[]) {
>         JFrame frame = new JFrame("Test");
>         frame.addWindowListener(new WindowAdapter() {
>             public void windowClosing(WindowEvent event){
>                 System.exit(0);
>             }
>         });
>         JEditorPane editorPane = new JEditorPane("text/html", "text<br><a>aaa</a><br><a href=\"\">href</a>");
>         frame.add(editorPane);
>         frame.setSize(150, 150);
>         frame.setVisible(true);
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (HARMONY-4606) [classlib][swing][html] tag behaves incorrectly

Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Petrenko resolved HARMONY-4606.
--------------------------------------

    Resolution: Fixed

The patch has been applied.
Please verify.

> [classlib][swing][html] <a> tag behaves incorrectly
> ---------------------------------------------------
>
>                 Key: HARMONY-4606
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4606
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Vasily Zakharov
>            Assignee: Alexey Petrenko
>         Attachments: H4606-HTMLDocument.patch, H4606-HTMLDocument_Reader_ActionsTest.patch, Harmony.jpg, RI.jpg
>
>
> In Harmony the text in <a> tag becomes blue and underlined even if href attribute is absent.
> In RI it only gets this look if href attribute is present.
> Here's the simple test demonstrating the problem:
> import java.awt.event.*;
> import javax.swing.*;
> public class Test {
>     public static void main(String argv[]) {
>         JFrame frame = new JFrame("Test");
>         frame.addWindowListener(new WindowAdapter() {
>             public void windowClosing(WindowEvent event){
>                 System.exit(0);
>             }
>         });
>         JEditorPane editorPane = new JEditorPane("text/html", "text<br><a>aaa</a><br><a href=\"\">href</a>");
>         frame.add(editorPane);
>         frame.setSize(150, 150);
>         frame.setVisible(true);
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-4606) [classlib][swing][html] tag behaves incorrectly

Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vasily Zakharov updated HARMONY-4606:
-------------------------------------

    Attachment: Harmony.jpg

> [classlib][swing][html] <a> tag behaves incorrectly
> ---------------------------------------------------
>
>                 Key: HARMONY-4606
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4606
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Vasily Zakharov
>         Attachments: Harmony.jpg, RI.jpg
>
>
> In Harmony the text in <a> tag becomes blue and underlined even if href attribute is absent.
> In RI it only gets this look if href attribute is present.
> Here's the simple test demonstrating the problem:
> import java.awt.event.*;
> import javax.swing.*;
> public class Test {
>     public static void main(String argv[]) {
>         JFrame frame = new JFrame("Test");
>         frame.addWindowListener(new WindowAdapter() {
>             public void windowClosing(WindowEvent event){
>                 System.exit(0);
>             }
>         });
>         JEditorPane editorPane = new JEditorPane("text/html", "text<br><a>aaa</a><br><a href=\"\">href</a>");
>         frame.add(editorPane);
>         frame.setSize(150, 150);
>         frame.setVisible(true);
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-4606) [classlib][swing][html] tag behaves incorrectly

Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vasily Zakharov updated HARMONY-4606:
-------------------------------------

    Attachment: RI.jpg

> [classlib][swing][html] <a> tag behaves incorrectly
> ---------------------------------------------------
>
>                 Key: HARMONY-4606
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4606
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Vasily Zakharov
>         Attachments: Harmony.jpg, RI.jpg
>
>
> In Harmony the text in <a> tag becomes blue and underlined even if href attribute is absent.
> In RI it only gets this look if href attribute is present.
> Here's the simple test demonstrating the problem:
> import java.awt.event.*;
> import javax.swing.*;
> public class Test {
>     public static void main(String argv[]) {
>         JFrame frame = new JFrame("Test");
>         frame.addWindowListener(new WindowAdapter() {
>             public void windowClosing(WindowEvent event){
>                 System.exit(0);
>             }
>         });
>         JEditorPane editorPane = new JEditorPane("text/html", "text<br><a>aaa</a><br><a href=\"\">href</a>");
>         frame.add(editorPane);
>         frame.setSize(150, 150);
>         frame.setVisible(true);
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (HARMONY-4606) [classlib][swing][html] tag behaves incorrectly

Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Petrenko reassigned HARMONY-4606:
----------------------------------------

    Assignee: Alexey Petrenko

> [classlib][swing][html] <a> tag behaves incorrectly
> ---------------------------------------------------
>
>                 Key: HARMONY-4606
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4606
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib, Non-bug differences from RI
>            Reporter: Vasily Zakharov
>            Assignee: Alexey Petrenko
>         Attachments: Harmony.jpg, RI.jpg
>
>
> In Harmony the text in <a> tag becomes blue and underlined even if href attribute is absent.
> In RI it only gets this look if href attribute is present.
> Here's the simple test demonstrating the problem:
> import java.awt.event.*;
> import javax.swing.*;
> public class Test {
>     public static void main(String argv[]) {
>         JFrame frame = new JFrame("Test");
>         frame.addWindowListener(new WindowAdapter() {
>             public void windowClosing(WindowEvent event){
>                 System.exit(0);
>             }
>         });
>         JEditorPane editorPane = new JEditorPane("text/html", "text<br><a>aaa</a><br><a href=\"\">href</a>");
>         frame.add(editorPane);
>         frame.setSize(150, 150);
>         frame.setVisible(true);
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (HARMONY-4606) [classlib][swing][html] tag behaves incorrectly

Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vasily Zakharov closed HARMONY-4606.
------------------------------------


Thanks, Dmitry, Alexey, the problem is now resolved!

Closing the issue.


> [classlib][swing][html] <a> tag behaves incorrectly
> ---------------------------------------------------
>
>                 Key: HARMONY-4606
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4606
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Vasily Zakharov
>            Assignee: Alexey Petrenko
>         Attachments: H4606-HTMLDocument.patch, H4606-HTMLDocument_Reader_ActionsTest.patch, Harmony.jpg, RI.jpg
>
>
> In Harmony the text in <a> tag becomes blue and underlined even if href attribute is absent.
> In RI it only gets this look if href attribute is present.
> Here's the simple test demonstrating the problem:
> import java.awt.event.*;
> import javax.swing.*;
> public class Test {
>     public static void main(String argv[]) {
>         JFrame frame = new JFrame("Test");
>         frame.addWindowListener(new WindowAdapter() {
>             public void windowClosing(WindowEvent event){
>                 System.exit(0);
>             }
>         });
>         JEditorPane editorPane = new JEditorPane("text/html", "text<br><a>aaa</a><br><a href=\"\">href</a>");
>         frame.add(editorPane);
>         frame.setSize(150, 150);
>         frame.setVisible(true);
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-4606) [classlib][swing][html] tag behaves incorrectly

Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Petrenko updated HARMONY-4606:
-------------------------------------

    Comment: was deleted

> [classlib][swing][html] <a> tag behaves incorrectly
> ---------------------------------------------------
>
>                 Key: HARMONY-4606
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4606
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib, Non-bug differences from RI
>            Reporter: Vasily Zakharov
>            Assignee: Alexey Petrenko
>         Attachments: Harmony.jpg, RI.jpg
>
>
> In Harmony the text in <a> tag becomes blue and underlined even if href attribute is absent.
> In RI it only gets this look if href attribute is present.
> Here's the simple test demonstrating the problem:
> import java.awt.event.*;
> import javax.swing.*;
> public class Test {
>     public static void main(String argv[]) {
>         JFrame frame = new JFrame("Test");
>         frame.addWindowListener(new WindowAdapter() {
>             public void windowClosing(WindowEvent event){
>                 System.exit(0);
>             }
>         });
>         JEditorPane editorPane = new JEditorPane("text/html", "text<br><a>aaa</a><br><a href=\"\">href</a>");
>         frame.add(editorPane);
>         frame.setSize(150, 150);
>         frame.setVisible(true);
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-4606) [classlib][swing][html] tag behaves incorrectly

Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Petrenko updated HARMONY-4606:
-------------------------------------

    Component/s:     (was: Non-bug differences from RI)

> [classlib][swing][html] <a> tag behaves incorrectly
> ---------------------------------------------------
>
>                 Key: HARMONY-4606
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4606
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Vasily Zakharov
>            Assignee: Alexey Petrenko
>         Attachments: Harmony.jpg, RI.jpg
>
>
> In Harmony the text in <a> tag becomes blue and underlined even if href attribute is absent.
> In RI it only gets this look if href attribute is present.
> Here's the simple test demonstrating the problem:
> import java.awt.event.*;
> import javax.swing.*;
> public class Test {
>     public static void main(String argv[]) {
>         JFrame frame = new JFrame("Test");
>         frame.addWindowListener(new WindowAdapter() {
>             public void windowClosing(WindowEvent event){
>                 System.exit(0);
>             }
>         });
>         JEditorPane editorPane = new JEditorPane("text/html", "text<br><a>aaa</a><br><a href=\"\">href</a>");
>         frame.add(editorPane);
>         frame.setSize(150, 150);
>         frame.setVisible(true);
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-4606) [classlib][swing][html] tag behaves incorrectly

Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Petrenko updated HARMONY-4606:
-------------------------------------

    Component/s: Non-bug differences from RI

IE and Firefox behaves the same with Harmony on this HTML.
So I believe it can be treated as non-bug-difference from RI.

I'll start a conversation on dev list.

> [classlib][swing][html] <a> tag behaves incorrectly
> ---------------------------------------------------
>
>                 Key: HARMONY-4606
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4606
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib, Non-bug differences from RI
>            Reporter: Vasily Zakharov
>            Assignee: Alexey Petrenko
>         Attachments: Harmony.jpg, RI.jpg
>
>
> In Harmony the text in <a> tag becomes blue and underlined even if href attribute is absent.
> In RI it only gets this look if href attribute is present.
> Here's the simple test demonstrating the problem:
> import java.awt.event.*;
> import javax.swing.*;
> public class Test {
>     public static void main(String argv[]) {
>         JFrame frame = new JFrame("Test");
>         frame.addWindowListener(new WindowAdapter() {
>             public void windowClosing(WindowEvent event){
>                 System.exit(0);
>             }
>         });
>         JEditorPane editorPane = new JEditorPane("text/html", "text<br><a>aaa</a><br><a href=\"\">href</a>");
>         frame.add(editorPane);
>         frame.setSize(150, 150);
>         frame.setVisible(true);
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-4606) [classlib][swing][html] tag behaves incorrectly

Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Petrenko updated HARMONY-4606:
-------------------------------------

    Patch Info: [Patch Available]

> [classlib][swing][html] <a> tag behaves incorrectly
> ---------------------------------------------------
>
>                 Key: HARMONY-4606
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4606
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Vasily Zakharov
>            Assignee: Alexey Petrenko
>         Attachments: H4606-HTMLDocument.patch, H4606-HTMLDocument_Reader_ActionsTest.patch, Harmony.jpg, RI.jpg
>
>
> In Harmony the text in <a> tag becomes blue and underlined even if href attribute is absent.
> In RI it only gets this look if href attribute is present.
> Here's the simple test demonstrating the problem:
> import java.awt.event.*;
> import javax.swing.*;
> public class Test {
>     public static void main(String argv[]) {
>         JFrame frame = new JFrame("Test");
>         frame.addWindowListener(new WindowAdapter() {
>             public void windowClosing(WindowEvent event){
>                 System.exit(0);
>             }
>         });
>         JEditorPane editorPane = new JEditorPane("text/html", "text<br><a>aaa</a><br><a href=\"\">href</a>");
>         frame.add(editorPane);
>         frame.setSize(150, 150);
>         frame.setVisible(true);
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-4606) [classlib][swing][html] tag behaves incorrectly

Posted by "Dmitry Irlyanov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Irlyanov updated HARMONY-4606:
-------------------------------------

    Attachment: H4606-HTMLDocument.patch

Proposed fix

> [classlib][swing][html] <a> tag behaves incorrectly
> ---------------------------------------------------
>
>                 Key: HARMONY-4606
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4606
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Vasily Zakharov
>            Assignee: Alexey Petrenko
>         Attachments: H4606-HTMLDocument.patch, Harmony.jpg, RI.jpg
>
>
> In Harmony the text in <a> tag becomes blue and underlined even if href attribute is absent.
> In RI it only gets this look if href attribute is present.
> Here's the simple test demonstrating the problem:
> import java.awt.event.*;
> import javax.swing.*;
> public class Test {
>     public static void main(String argv[]) {
>         JFrame frame = new JFrame("Test");
>         frame.addWindowListener(new WindowAdapter() {
>             public void windowClosing(WindowEvent event){
>                 System.exit(0);
>             }
>         });
>         JEditorPane editorPane = new JEditorPane("text/html", "text<br><a>aaa</a><br><a href=\"\">href</a>");
>         frame.add(editorPane);
>         frame.setSize(150, 150);
>         frame.setVisible(true);
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-4606) [classlib][swing][html] tag behaves incorrectly

Posted by "Dmitry Irlyanov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Irlyanov updated HARMONY-4606:
-------------------------------------

    Attachment: H4606-HTMLDocument_Reader_ActionsTest.patch

Due to functionality is changed - unit tests changes too

> [classlib][swing][html] <a> tag behaves incorrectly
> ---------------------------------------------------
>
>                 Key: HARMONY-4606
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4606
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Vasily Zakharov
>            Assignee: Alexey Petrenko
>         Attachments: H4606-HTMLDocument.patch, H4606-HTMLDocument_Reader_ActionsTest.patch, Harmony.jpg, RI.jpg
>
>
> In Harmony the text in <a> tag becomes blue and underlined even if href attribute is absent.
> In RI it only gets this look if href attribute is present.
> Here's the simple test demonstrating the problem:
> import java.awt.event.*;
> import javax.swing.*;
> public class Test {
>     public static void main(String argv[]) {
>         JFrame frame = new JFrame("Test");
>         frame.addWindowListener(new WindowAdapter() {
>             public void windowClosing(WindowEvent event){
>                 System.exit(0);
>             }
>         });
>         JEditorPane editorPane = new JEditorPane("text/html", "text<br><a>aaa</a><br><a href=\"\">href</a>");
>         frame.add(editorPane);
>         frame.setSize(150, 150);
>         frame.setVisible(true);
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.