Skip to content

document fragment? #4

Description

@VaiN474

Not sure what's wrong, but using this I'm only getting a document fragment object returned.

the basic example

<script src="MinecraftColorCodes.js"></script>
<script>
var yourMOTD = "§d§lnerd.nu§8: §6§oCreative Rev 28";
var newMOTD = yourMOTD.replaceColorCodes();
console.log(newMOTD);
<script>

logs to the console as DocumentFragment(3) [ span, span, span ] with a ton of details in child elements.

The usage either isn't as straight-forward as the example, or it's not working as described. I don't know JS well enough to troubleshoot this. Any thoughts?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions